package com.migo.service.impl;

import com.migo.dao.TeachingVideoDao;
import com.migo.entity.TeachingVideoEntity;
import com.migo.service.TeachingVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("teachingVideoService")
public class TeachingVideoServiceImpl implements TeachingVideoService {
	@Autowired
	private TeachingVideoDao teachingVideoDao;
	
	@Override
	public TeachingVideoEntity queryObject(Integer id){
		return teachingVideoDao.queryObject(id);
	}
	
	@Override
	public List<TeachingVideoEntity> queryList(Map<String, Object> map){
		return teachingVideoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return teachingVideoDao.queryTotal(map);
	}
	
	@Override
	public void save(TeachingVideoEntity teachingVideo){
		teachingVideoDao.save(teachingVideo);
	}
	
	@Override
	public void update(TeachingVideoEntity teachingVideo){
		teachingVideoDao.update(teachingVideo);
	}
	
	@Override
	public void delete(Integer id){
		teachingVideoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		teachingVideoDao.deleteBatch(ids);
	}
	
}
